import { requestType } from '~/config/enum.config'

const SERVICE = 'domain-service'
const CONTROLLER = 'ruleEliminateStrategyController'

export default {

  /**
   * 获取支持的规则剔除策略字段
   */
  getRuleEliminateFields: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getRuleEliminateFields',
    type: requestType.Get
  },
  /**
   * 分页查询所有规则剔除策略
   */
  queryAllRuleEliminateStrategyPage: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryAllRuleEliminateStrategyPage',
    type: requestType.Get
  },
  /**
   * 查询单个规则剔除策略
   */
  queryRuleEliminateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRuleEliminateStrategy',
    type: requestType.Get
  },
  /**
   * 新增规则剔除策略
   */
  saveRuleEliminateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'saveRuleEliminateStrategy',
    type: requestType.Post
  },
  /**
   * 停用规则剔除策略
   */
  stopOrStartRuleEliminateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'stopOrStartRuleEliminateStrategy',
    type: requestType.Put
  },
  /**
   * 修改规则剔除策略
   */
  updateRuleEliminateStrategy: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateRuleEliminateStrategy',
    type: requestType.Put
  },
  /**
   * 审批历史
   */
  queryRuleEliminateStrategyLogList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRuleEliminateStrategyLogList',
    type: requestType.Get
  },
  /**
   * 审批历史详情
   */
  queryRuleEliminateStrategyLog: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'queryRuleEliminateStrategyLog',
    type: requestType.Get
  },
}
